home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / RTVBE210.ZIP / UVBELIB.H < prev    next >
C/C++ Source or Header  |  1996-03-13  |  3KB  |  89 lines

  1. /****************************************************************************
  2. *
  3. *                         The Universal VESA VBE
  4. *
  5. *                   Copyright (C) 1996 SciTech Software.
  6. *                           All rights reserved.
  7. *
  8. * Filename:     $Workfile:   uvbelib.h  $
  9. * Version:      $Revision:   1.1  $
  10. *
  11. * Language:     ANSI C
  12. * Environment:  MS-DOS/WinDirect
  13. *
  14. * Description:  Header file for the UVBELib(tm) functions.
  15. *
  16. * $Date:   13 Mar 1996 18:14:28  $ $Author:   KendallB  $
  17. *
  18. ****************************************************************************/
  19.  
  20. #ifndef __UVBELIB_H
  21. #define __UVBELIB_H
  22.  
  23. #ifndef    __DEBUG_H
  24. #include "debug.h"
  25. #endif
  26.  
  27. /*--------------------- Macros and type definitiosn -----------------------*/
  28.  
  29. typedef enum {
  30.     /*--------------------------------------------------------------------
  31.      * Non-fatal return codes
  32.      *------------------------------------------------------------------*/
  33.     UV_ok,                /* UVBELib successfully installed the driver    */
  34.     UV_noDetect,        /* Driver file is configured for standard VGA    */
  35.     UV_alreadyVBE20,    /* VBE 2.0 detected and ignoreVBE was false        */
  36.     UV_laterVersion,    /* A later TSR version of UniVBE is installed    */
  37.  
  38.     UV_lastNonFatal,    /* Last non fatal error code                    */
  39.  
  40.     /*--------------------------------------------------------------------
  41.      * Fatal return codes
  42.      *------------------------------------------------------------------*/
  43.     UV_errNotFound,        /* Could not find UNIVBE.DRV driver file        */
  44.     UV_errNotValid,        /* File loaded not a valid driver file            */
  45.     UV_errOldVersion,    /* Attempt to load older driver file version    */
  46.     UV_errNoMemory,        /* Could not allocate memory to load driver        */
  47.     UV_errNoRealMemory,    /* Could not allocate real mode memory            */
  48.  
  49.     /*--------------------------------------------------------------------
  50.      * Fatal internal return codes. Contact SciTech if you get any of
  51.      * these as these indicate configuration problems that should not
  52.      * occur.
  53.      *------------------------------------------------------------------*/
  54.     UV_errGenerate,        /* Error generating UNIVBE.DRV driver file        */
  55.     UV_errCheckInstall,    /* Check install function failed                */
  56.     } UV_installCodes;
  57.  
  58. /*-------------------------- Function Prototypes --------------------------*/
  59.  
  60. #ifdef  __cplusplus
  61. extern "C" {                        /* Use "C" linkage when in C++ mode */
  62. #endif
  63.  
  64. /* Routines to install the UVBELib VBE 2.0 device support routines */
  65.  
  66. int        _cdecl UV_install(char *driverDir,bool ignoreVBE,bool analyseModes);
  67. void    _cdecl UV_exit(void);
  68. void    _cdecl UV_getDriverPath(char *argv0,char *buf);
  69.  
  70. /* Get error message and copyright strings */
  71.  
  72. char *     _cdecl UV_getErrorStr(int err);
  73. char *     _cdecl UV_getCopyrightStr(void);
  74. char *     _cdecl UV_getMajorVersion(void);
  75. char *     _cdecl UV_getMinorVersion(void);
  76. char *     _cdecl UV_getReleaseDate(void);
  77.  
  78. /* Get configuration strings */
  79.  
  80. char *     _cdecl UV_getSuperVGAStr(void);
  81. char *     _cdecl UV_getDACStr(void);
  82. char *     _cdecl UV_getClockStr(void);
  83.  
  84. #ifdef  __cplusplus
  85. }                                   /* End of "C" linkage for C++       */
  86. #endif
  87.  
  88. #endif  /* __UVBELIB_H */
  89.